﻿@model Dazaza.Domain.Model.InfoModel
@using Dazaza.UI.Mvc.Controllers.Helper;

@{
    string htmlPath = string.Format("/story/{0}_{1}.html", Model.Category, Model.InfoID.ToString());
    string thumbUrl = string.Format("http://img.diglog.com/img/{0}/{1}/thumb_{2}", Model.Posttime.Year.ToString(), Model.Posttime.Month.ToString(), Model.ImageName);

}
<div class="story_list_item" id="@("item" + Model.InfoID.ToString())" style="text-align:left;">
    <div class="story_list_summary">
        <div class="story_list_key_info">
            <span class="story_list_title"><a id="@("il" + Model.InfoID.ToString())" target="_blank" href="@htmlPath">@Model.Title</a>
            </span>
        </div>
        <div class="story_list_posttime">@Model.Posttime by <a href="@("/user/" + Model.Name)">@Model.Name</a></div>
        <div class="story_list_note">
            <div class="sl_r_img">
                <a href="@htmlPath">
                    <img alt="@Model.Tags" onerror="this.setAttribute('src','http://img.diglog.com/images/img_thumb_default.jpg');"
                        class="stroy_thumb_img" src="@thumbUrl"></a>
            </div>
            @HTMLHelper.ConvertNoteToBrief(Model.Note, 160)
            <p>
                [ <a class="story_more" href="@htmlPath">阅读全文</a> ]</p>
        </div>
        <div class="clear">
        </div>
        <div class="sl_collection_box">
            <a class="diggbutton" href="@(htmlPath + "#comment")"><span class="slcb_viewcomment">评论(@Model.CommentCount_)</span></a></div>
    </div>
    <div class="clear">
    </div>
</div>
